package com.tech.pattern.proxy.dynamicproxy;


import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;



/**
 * @Description:动态
 * @Author: zl
 * @Date: 2019/7/11 15:36
 */
public class DynamicProxyHandler implements InvocationHandler {

    private  Object object;

    public DynamicProxyHandler(Object object) {
        this.object = object;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        return method.invoke(object,args);
    }
}
